package com.lyl.novel.task.job;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Console;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

/**
 * @author Mr.Luo
 * @date 2022-08-23 11:32
 * @desc 打印
 */
@Component
public class PrintJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        Console.log("定时任务：[PrintJob] 执行 --" + DateUtil.now());
    }
}
